package cn.edu.hunau.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.Objects;

/**
 * @Author 苏佳
 * @Date
 **/
public class OrderItem {
    private Integer id;
    private Product product;
    private int qty;   //小计数量

    private double shoppingPrice;
    private int size;
    //关系属性
    @JsonIgnore
    private Order order;

    public double getShoppingPrice() {
        return shoppingPrice;
    }

    public void setShoppingPrice(double shoppingPrice) {
        this.shoppingPrice = shoppingPrice;
    }


    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public int getQty() {
        return qty;
    }

    public void setQty(int qty) {
        this.qty = qty;
    }


    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

}
